<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html">

    <body>

        <ui:composition template="./TemplateUsuario.xhtml">

            <ui:define name="top">
                
            </ui:define>

            <ui:define name="left">
                
            </ui:define>

            <ui:define name="right">
                
            </ui:define>

            <ui:define name="content">
                <f:view>
                    <p:panel header="Confirmar Compra">
                        <p:panel header="No Control">
                            <p:outputLabel value="No Control: #{compraBean.user}"/>
                        </p:panel>
                        <h:form>
                            <p:panel>
                                <h:dataTable value="#{compraBean.listaPlatillos}" var="item">
                                    <h:column>
                                        <f:facet name="header">
                                            <h:outputText value="Id"/>
                                        </f:facet>
                                        <h:outputText value="#{item.id}"/>
                                    </h:column>
                                    <h:column>
                                        <f:facet name="header">
                                            <h:outputText value="Platillo"/>
                                        </f:facet>
                                        <h:outputText value="#{item.platillo}"/>
                                    </h:column>
                                    <h:column>
                                        <f:facet name="header">
                                            <h:outputText value="Costo"/>
                                        </f:facet>
                                        <h:outputText value="#{item.costo}"/>
                                    </h:column>
                                </h:dataTable>
                                <p:commandButton action="#{compraBean.procesarAccion1}" value="eliminar" ajax="false"/>
                                <p:commandButton action="CompraCrearEditar" value="cancelar" ajax="false"/>
                            </p:panel>
                        </h:form>
                    </p:panel>
                </f:view>
            </ui:define>

            <ui:define name="bottom">
                
            </ui:define>

        </ui:composition>

    </body>
</html>
